@tailwind base;
@tailwind components;
@tailwind utilities;


@layer base {
  .markdown > * {
      all: revert;
    }
  :root {
        /* 默认主题颜色 - 会被 JavaScript 动态覆盖 */
        --background: 0 0% 100%;
        --foreground: 220 10% 10%;
        --card: 0 0% 100%;
        --card-foreground: 220 10% 10%;
        --popover: 0 0% 100%;
        --popover-foreground: 220 10% 10%;
        --primary: 220 100% 50%;
        --primary-dark: 220 100% 40%;
        --primary-foreground: 0 0% 100%;
        --secondary: 220 60% 90%;
        --secondary-foreground: 220 10% 10%;
        --muted: 220 10% 60%;
        --muted-foreground: 220 10% 60%;
        --accent: 220 100% 60%;
        --accent-foreground: 0 0% 100%;
        --destructive: 0 84.2% 60.2%;
        --destructive-foreground: 0 0% 98%;
        --border: 220 60% 90%;
        --input: 220 60% 90%;
        --ring: 220 100% 50%;
        --chart-1: 12 76% 61%;
        --chart-2: 173 58% 39%;
        --chart-3: 197 37% 24%;
        --chart-4: 43 74% 66%;
        --chart-5: 27 87% 67%;
        --radius: 0.5rem;
    }
  .dark {
        --background: 0 0% 3.9%;
        --foreground: 0 0% 98%;
        --card: 0 0% 3.9%;
        --card-foreground: 0 0% 98%;
        --popover: 0 0% 3.9%;
        --popover-foreground: 0 0% 98%;
        --primary: 0 0% 98%;
        --primary-foreground: 0 0% 9%;
        --secondary: 0 0% 14.9%;
        --secondary-foreground: 0 0% 98%;
        --muted: 0 0% 14.9%;
        --muted-foreground: 0 0% 63.9%;
        --accent: 0 0% 14.9%;
        --accent-foreground: 0 0% 98%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 0 0% 98%;
        --border: 0 0% 14.9%;
        --input: 0 0% 14.9%;
        --ring: 0 0% 83.1%;
        --chart-1: 220 70% 50%;
        --chart-2: 160 60% 45%;
        --chart-3: 30 80% 55%;
        --chart-4: 280 65% 60%;
        --chart-5: 340 75% 55%;
    }
  }

@layer base {
  * {
    @apply border-border;
    }
  body {
    @apply bg-background text-foreground;
    }
}

/* 3d card */
@layer utilities {
  .perspective-1200 {
    perspective: 1200px;
  }
  .transform-style-preserve-3d {
    transform-style: preserve-3d;
  }
  .rotate-y-180 {
    transform: rotateY(180deg);
  }
  .transition-transform {
    transition: transform 1s;
  }
  .transition-opacity {
    transition: opacity 1s 0.5s;
  }
}

@layer utilities {
  .animate-fade-in {
    animation: fadeIn 1s ease-in;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}